import React from "react";
import "./index.scss";

const PayItem = React.memo(({ item }) => (
	<div className="flex loan-item">
		<div>
			<p className="first-line font-bold">
				{item.bankName} ({item.bankCardNo})
			</p>
			<p className="font-grey">{item.repayDate}</p>
		</div>
		<div>
			<p className="first-line font-bold">{item.repayAmt} 元</p>
			<p className="font-green">还款成功</p>
		</div>
	</div>
));

export default PayItem;
